# # 添加库  
# add_library(MyLibrary STATIC test_data_recorder.cpp)  
  
# # 添加可执行文件，并链接到 MyLibrary  
# add_executable(MyExecutable main.cpp)  
# target_link_libraries(MyExecutable PRIVATE MyLibrary pthread)


# add_executable(MyExecutable2 main2.cpp)  
# target_link_libraries(MyExecutable2 PRIVATE MyLibrary pthread)

add_library(pRecorder STATIC pRecorder.cpp Recorder.cpp)
add_library(exeRecorder STATIC exeRecorder.cpp Recorder.cpp)

add_executable(MyExecutable1 main3.cpp)
target_link_libraries(MyExecutable1 PRIVATE pRecorder exeRecorder pthread)



